GdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 3 May 2011 22:01:10 +0000 (00:01 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 3 May 2011 23:00:42 +0000 (01:00 +0200)
commit2a1a969d232a8d2b18d608f0dab67775ec76dd81
treeda99d156f0ae9f0acaa5432cd7ba391702441402
parentb90e8cfc36261d17f84b2040609d1708327bc90f
GdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows

It could be the case that gdk_window_set_cursor() is called on
pointers not yet known to the device tracking code in GdkDisplay,
so update the cursor on all master pointers.

The code actually updating the cursor for the given window has
been refactored out to gdk_window_set_cursor_internal(), used
in gdk_window_set_device_cursor() as well, which makes it handle
root/foreign windows too.

https://bugzilla.gnome.org/show_bug.cgi?id=649313
gdk/gdkwindow.c